package cn.iocoder.yudao.module.api.brokerage.agency.vo;

import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/03/10
 */
@Data
public class AgencyBrokerageMoneyTrendVO {

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "金额，单位为分")
    private Integer money;

    @Schema(description = "金额，单位为元")
    private String moneyYuan;

    @SuppressWarnings("unused")
    public String getMoneyYuan() {
        if (moneyYuan == null) {
            moneyYuan = MoneyUtils.fenToYuanStr(getMoney());
        }
        return moneyYuan;
    }

}
